package cn.chencaiju.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.chencaiju.domain.Category;
import cn.chencaiju.mapper.CategoryMapper;

@Service
public class CategoryService {
	@Autowired
	CategoryMapper mapper;
	
	public List<Category> findAll(){
		List<Category> all = mapper.findAll();
		return all;
	}
}
